package com.guangwei.lockscreenforelder.lockscreen

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.guangwei.lockscreenforelder.util.Constant

class LockScreenReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        if ((intent.action == Intent.ACTION_SCREEN_OFF)
            //or (intent.action == Intent.ACTION_SCREEN_ON)
            or (intent.action == Intent.ACTION_BOOT_COMPLETED)) {
            LockScreenActivity.startLockScreenActivity(context)
        }
    }
}
